#######################################################################################################################
# Responsive Rhetoric: Evidence from Congressional Redistricting
# Jaclyn Kaslovsky and Michael Kistner                                                  
# Legislative Studies Quarterly                                                                  
# README File                                                                                              
#######################################################################################################################

This file outlines the software, code, and data used to produce the results 
presented in "Responsive Rhetoric: Evidence from Congressional Redistricting," by Jaclyn Kaslovsky and Michael Kistner.
In order to replicate all tables and figures from the main text, replicators should run "Final Output.R". To replicate all tables and figures from the appendix, replicators should run "Appendix Code.R"

##########################################################################################
	## Scripts ##
##########################################################################################

	"Final Output.R"
		loads in "District and Member Changes (116th and 117th).Rda" and "Tweets by Members of Congress (116th and 117th).Rda". Provides
		descriptive statistics, runs regressions, and outputs tables and figures in the main text.

	"Appendix Code.R" 
		loads in "District and Member Changes (116th and 117th).Rda", "Tweets by Members of Congress (116th and 117th).Rda", and "CES Perceptions.Rda". Provides descriptive statistics, runs regressions, and outputs tables and figures in the appendix.


##########################################################################################	
	## Data ##
##########################################################################################

	"District and Member Changes (116th and 117th).Rda": member-level dataset used for Table 1, Figure 3, Figure 4, and Figure 5, Figure A.1, 
	Table D.1, Figure E.1, Table F.1, Table G.1, and Table H.1
	
	"Members of Congress (116th and 117th).Rda": member-tweet level dataset used for descriptive statistics and Figure 5,
	Figure B.1, and Figure C.1 
	
	"CES Perceptions.Rda": CCES data used for Table J.1


##########################################################################################	
	## Software Dependencies ##
##########################################################################################	

	All analyses were originally undertaken in R version 4.2.3 "Shortstop Beagle" on a system running
	macOS Catalina 10.15.7

	Package dependencies in Main Analysis File:  	[1] quanteda.textstats_0.97   quanteda.textmodels_0.9.6 quanteda_4.0.2            tictoc_1.2                	[5] broom_1.0.5               lubridate_1.9.2           forcats_1.0.0             stringr_1.5.0            	[9] dplyr_1.1.4               purrr_1.0.2               readr_2.1.4               tidyr_1.3.0              	[13] tibble_3.2.1              tidyverse_2.0.0           modelsummary_1.4.5        magrittr_2.0.3           	[17] ggpubr_0.6.0              ggplot2_3.4.4             fixest_0.11.2             cowplot_1.1.1 
	[21] haven_2.5.3	
		